<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title>易商通运营平台</title>
    <script type="text/javascript" src="__PUBLIC__/libs/js/jquery.js"></script>
    <script type="text/javascript" src="__PUBLIC__/libs/js/framework.js"></script>
    <link href="__PUBLIC__/libs/css/import_basic.css" rel="stylesheet" type="text/css"/>
    <link rel="stylesheet" type="text/css" id="skin" prePath="__PUBLIC__/"/>
    <link rel="stylesheet" type="text/css" id="customSkin"/>
    <script type="text/javascript" src="__PUBLIC__/libs/js/form/datePicker/WdatePicker.js"></script>
    <script type="text/javascript" src="__PUBLIC__/libs/js/nav/pageNumber.js"></script>
    <style>body {
        background-color: #dbeefd
    }</style>
</head>
<body>
<div class="box1">
    <fieldset style="border-color:#999999;">

        <legend>人员管理</legend>
        <div class="box2" panelTitle="功能面板" id="searchPanel">
            <table>
                <tr>
                    <td>人员名：</td>
                    <td><input id="query_userName" value="" type="text"/><input type="text"
                                                                                style="width:2px;display:none;"/></td>
                    <td>
                        <button type="button" onclick="searchHandler()"><span class="icon_find">查询</span></button>
                    </td>
                    <td>
                        <button type="button" onclick="resetSearch()"><span class="icon_reload">重置</span></button>
                    </td>

                </tr>
            </table>
        </div>
        <table class="tableStyle">
            <tr>
                <th>人员名</th>
                <th>性别</th>
                <th>联系电话</th>
                <th>QQ</th>
                <th>地址</th>
                <th>注册时间</th>
                <th>部门</th>
                <th>角色</th>
                <th>用户名</th>
                <th>上次登录时间</th>
                <th>登陆次数</th>
                <th>登录IP</th>
                <th>操作</th>
            </tr>
            <volist name="list" id="vo">
                <tr>
                    <td>{$vo['name']}</td>
                    <td><?php
            if($vo['sex']==1){
            echo "男";
            }else{
            echo "女";
            }
            ?></td>
                    <td>{$vo['telephone']}</td>
                    <td>{$vo['qq']}</td>
                    <td>{$vo['address']}</td>
                    <td>{$vo['regtime']}</td>
                    <td>
                        <?php
            $id=$vo['department'];
        		$department=M('department');
            $arr=$department->find($id);
                        echo $arr['name'];
                        ?>
                    </td>
                    <td>
                        <?php
            $id=$vo['role'];
        		$role=M('role');
            $arr=$role->find($id);
                        echo $arr['name'];
                        ?>
                    </td>
                    <td>{$vo['username']}</td>
                    <td>{$vo['lastlogin']}</td>
                    <td>{$vo['logtime']}次</td>
                    <td>{$vo['logIP']}</td>
                    <td><a href="__URL__/updateren/id/{$vo.id}">修改</a>|
                        <a href="__URL__/delren/id/{$vo.id}">删除</a>
                    </td>
                </tr>
            </volist>
            <tr>
                <td colspan="13"><a href="__URL__/addren/">添加</a></td>
            </tr>
        </table>
    </fieldset>
</div>


</body>
</html>